package com.tron.dobest.async;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "异步任务")
@RestController
public class TronAsyncController {
    @Autowired
    AsyncService asyncService;

    @ApiOperation(value = "异步任务测试")
    @GetMapping("/asyncTest01")
    public Object asyncTest01() {
        asyncService.getString();
        return "success";
    }
}
